// react库
var React = require('react');
// react路由
var ReactRouter = require('react-router');
// 商业贷
var CommercialLoans = require('./commercialLoans');
// 公积金贷款
var FundLoans = require('./fundLoans');
// 组合贷
var CombinationLoans = require('./combinationLoans');
// 税费计算
var TaxCalculation = require('./taxCalculation');
// 路由表
var Route = ReactRouter.Route;
// 跳转封装
var Link = ReactRouter.Link;
// 默认路由
var IndexRoute = ReactRouter.IndexRoute;
// 设置跳转标签
var Tab = React.createClass({
    render: function () {
        return (<div>
            <ul>
                <li><Link to="/commercialLoans">商业贷</Link></li>
                <li><Link to="/fundLoans">公积金贷</Link></li>
                <li><Link to="/combinationLoans">组合贷</Link></li>
                <li><Link to="/taxCalculation">税费计算</Link></li>
            </ul>
            {this.props.children}
        </div>);
    }
});
module.exports = (
    <Route path="/" component={Tab}>
        <IndexRoute component={CommercialLoans}/>
        <Route path="commercialLoans" component={CommercialLoans}/>
        <Route path="fundLoans" component={FundLoans}/>
        <Route path="combinationLoans" component={CombinationLoans}/>
        <Route path="taxCalculation" component={TaxCalculation}/>
    </Route>
);